package com.woniu.dating.service;

import com.woniu.dating.dto.DynamicDTO;
import com.woniu.dating.pojo.DatingDynamic;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.dating.vo.DatingLoginVO;
import com.woniu.dating.vo.DynamicVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 玖柒
 * @since 2023-05-20
 */
public interface IDatingDynamicService extends IService<DatingDynamic> {

    /**
     * 获取个人动态
     * @param datingLoginVO
     * @return
     */
    List<DynamicVO> getDatingDynamic(DatingLoginVO datingLoginVO);

    /**
     * 根据id获取动态
     * @param userId
     * @return
     */
    List<DynamicVO> getDatingDynamicPerson(Integer userId);

    /**
     * 删除动态
     * @param datingLoginVO
     */
    void deleteDynamic(DatingLoginVO datingLoginVO,Integer dynamicId);


    /**
     * 发布评论
     * @param datingLoginVO
     */
    void addDynamic(DatingLoginVO datingLoginVO, DynamicDTO dynamicDTO);

    /**
     * 动态圈
     * @param datingLoginVO
     * @return
     */
    List<DynamicVO> dynamicCircle(DatingLoginVO datingLoginVO);
}
